package MP.ASTs;

import MP.CompilationException;
import MP.lexicalanalysis.Token;

public class BinExprAST extends ExprAST {
	public ExprAST 	e1;
	public Token		op;
	public ExprAST		e2;
	public BinExprAST(ExprAST exp1, Token t, ExprAST exp2){
		e1=exp1;
		op=t;
		e2=exp2;
		e1.parent=e2.parent=this;
	}
	public Object visit(Visitor v, Object o) throws CompilationException{
		return v.visitBinExprAST(this,o);
	}	
}